import 'package:m_todo/domain/entity/todo_entity.dart';

/// todoList 存储基础类
abstract class BaseTodoStore {
  Future<int> add(TodoEntity todoEntity);

  Future<TodoEntity?> query(int index);

  Future<List<TodoEntity>> queryAll();

  Future<List<TodoEntity>> queryUnDoneList();

  Future<void> update(TodoEntity todoEntity);

  Future<String> export(String targetPath);

  Future<int> import(String targetFilePath);
}
